package cn.stylefeng.guns.modular.system.service;


import cn.stylefeng.guns.core.common.exception.BizExceptionEnum;
import cn.stylefeng.guns.core.common.page.LayuiPageFactory;
import cn.stylefeng.guns.modular.system.entity.Dept;
import cn.stylefeng.guns.modular.system.entity.FruitProcurement;
import cn.stylefeng.guns.modular.system.mapper.FruitProcurementMapper;
import cn.stylefeng.roses.core.util.ToolUtil;
import cn.stylefeng.roses.kernel.model.exception.ServiceException;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.Map;

/**
 * <p>
 * 水果采购 服务实现类
 * </p>
 *
 * @author stylefeng
 * @since 2019-06-24
 */
@Service
public class FruitProcurementService extends ServiceImpl<FruitProcurementMapper, FruitProcurement> {

    @Resource
    private FruitProcurementMapper fruitProcurementMapper;

    /**
     * 获取水果采购列表
     *
     * @author zyx
     * @Date 2019-06-24
     */
    public Page<Map<String, Object>> list(String name, String address) {
        Page page = LayuiPageFactory.defaultPage();
        return this.baseMapper.list(page, name, address);
    }




}
